package com.goktech.controller;

import com.goktech.pojo.Swiper;
import com.goktech.service.SwiperService;
import com.goktech.utils.Result;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

import java.util.List;


/**
 * <p>
 * 轮播图 前端控制器
 * </p>
 *
 * @author 初茶
 * @since 2023-05-16
 */
@RestController
@RequestMapping("/swiper")
public class SwiperController {
    @Resource
    private SwiperService swiperService;

    @RequestMapping("/allSwiper")
    public Result<List<Swiper>> allSwiper() {
        return swiperService.allSwiper();
    }
}

